import {
    getData,
    saveData
} from '@/services/settings/appConfig/appConfigService';

export default {
    namespace: 'appConfigModel',

    state: {},

    effects: {
        *getData({payload, callback}, {call, put}) {
            const response = yield call(getData, payload);
            if (callback) callback(response);
        },
        *saveData({payload, callback}, {call, put}) {
            const response = yield call(saveData, payload);
            if (callback) callback(response);
        },
    },

    reducers: {},
};
